﻿using Terraria;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Buffs
{
    public class ControlFlip : ModBuff
    {
        public override void SetStaticDefaults()
        {
            Main.debuff[Type] = true;
            Main.buffNoSave[Type] = false;
        }

        public override void Update(Player player, ref int buffIndex)
        {
            bool flag2 = player.controlLeft;
            bool flag3 = player.controlUp;
            player.controlLeft = player.controlRight;
            player.controlRight = flag2;
            player.controlUp = player.controlRight;
            player.controlDown = flag3;
        }
    }
}
